$(function() {
	var setting = {
		async : {
			enable : true,
			url : templateRoot + '/tree/treeAction_tree.do',
			autoParam : [ "id" ]
		},
		data : {
			simpleData : {
				enable : true
			}
		}
	};


	$.fn.zTree.init($("#tree"), setting );

	$("#dialog").dialog({
		autoOpen: false,
		buttons: { "Ok": function() { alert("OKs"); }, 
		Close: function(){ $(this).dialog("close"); }
		}
		
	});
	$("#open").click(function(){
		$("#dialog").dialog("open");
	});
	
});